<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加供应商</title>
	<script th:src="@{/js/jquery-1.9.1.min.js}"></script>
	<link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
	<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
</head>

<body >

<form class="layui-form" th:action="@{/user/useradd}" lay-filter="example" method="post">
	<div class="layui-form-item">
		<label class="layui-form-label">用户编码：</label>
		<div class="layui-input-block">
			<input type="text" name="usercode" id="usercode" lay-verify="required" autocomplete="off" placeholder="请输入编码" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">用户名称：</label>
		<div class="layui-input-block">
			<input type="text" name="username" id="username" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">用户密码：</label>
		<div class="layui-input-block">
			<input type="password" name="userpassword" id="userpassword" lay-verify="required" autocomplete="off" placeholder="请输入密码" class="layui-input">
		</div>
	</div>


	<div class="layui-form-item">
		<label class="layui-form-label">用户性别：</label>
		<div class="layui-input-block">
			<input type="radio" name="gender" value="1" title="男" checked="">
			<input type="radio" name="gender" value="2" title="女">
		</div>
	</div>

	<div class="layui-inline">
		<label class="layui-form-label">出生日期：</label>
		<div class="layui-input-inline">
			<input type="text" name="birthday" id="birthday" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">用户电话：</label>
		<div class="layui-input-block">
			<input type="text" name="phone" id="phone" lay-verify="phone" autocomplete="off" placeholder="请输入联系电话" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">用户地址：</label>
		<div class="layui-input-block">
			<input type="text" name="address" id="address" lay-verify="address" autocomplete="off" placeholder="请输入地址" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">用户角色：</label>
		<div class="layui-input-block">
			<select name="userrole" lay-filter="aihao">
				<option value="0"></option>
				<option value="1">管理员</option>
				<option value="2" >经理</option>
				<option value="3" selected="">普通员工</option>

			</select>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-input-block">

			<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
		</div>
	</div>

</form>
<div class="layui-form-item">
	<div class="layui-input-block">
		<form th:action="@{/user/userlist}">
			<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">返回</button>
		</form>
	</div>
</div>



</body>
</html>